<?php
class Exame extends AppModel {

	var $name = 'Exame';
	var $validate = array(
		'medico_id' => array('notempty'),
		'funcionario_id' => array('notempty'),
		'tiposexame_id' => array('notempty'),
		'dataExame' => array('date'),
		'descricaoExame' => array('notempty')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Medico' => array(
			'className' => 'Medico',
			'foreignKey' => 'medico_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Funcionario' => array(
			'className' => 'Funcionario',
			'foreignKey' => 'funcionario_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Tiposexame' => array(
			'className' => 'Tiposexame',
			'foreignKey' => 'tiposexame_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)


	);

	var $hasMany = array(
		'Ppp' => array(
			'className' => 'Ppp',
			'foreignKey' => 'exame_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Resultado' => array(
			'className' => 'Resultado',
			'foreignKey' => 'exame_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
?>